<script setup lang="ts">
import { ref } from 'vue';

const sms = ref('');
</script>

<template>
  <demo-block title="插入按钮">
    <vcu-cell-group inset>
      <vcu-input
        v-model="sms"
        center
        clearable
        label="短信验证码"
        placeholder="请输入短信验证码"
      >
        <template #button>
          <vcu-button size="small" type="primary">
            发送验证码
          </vcu-button>
        </template>
      </vcu-input>
    </vcu-cell-group>
  </demo-block>
</template>
